<?php

namespace Action\User;

class PictureDialog extends \Library\Action\UserAction 
	implements \Library\Action\AjaxAction {

	private $_tabPane;
	
	public function getTabPane() {
		if( $this->_tabPane === null ) {
			$this->_tabPane = new \Library\Widget\TabPane();
			$this->_tabPane->getTab( 'byurl' )
				->setTitle( 'By url' )
				->setContent( _view( 'ByUrl', $this ) );
			$this->_tabPane->getTab( 'byupload' )
				->setTitle( 'By upload' )
				->setContent( _view( 'ByUpload', $this ) );
		}
		return $this->_tabPane;
	}

}
